Shuffled js out of tpl file and into its own js used by Drupal
behavior.