CRM-13142 limited tidy up to extract js from tpl using new standards

... I had completely tidied up the js into a separate file but discarded after a big tidy up was done in 4.3 & merged in.

As an aside, I thought we had added a CRM.setting jquery action? I guess not. It can be done by the api but returns an array not a single result.