Deprecated js vars will be instantiated in the deprecated js script file

* Localize js vars into script file
* Script file extracts variables from localization structure and puts them into 'var' making them available to scripts just as they were in prior versions