JavaScript useful tips and examples | Drupal 8