Porting from 6.x -> 7.x
variables
Merge pull request #1 from willtp87/7.x

variables
Shuffled js out of tpl file and into its own js used by Drupal
behavior.
JS whitepsace revert
Merge pull request #1 from daniel-dgi/7.x

Port from 6.x -> 7.x