[bug981352] - Moved inline togetherJSConfig script into separate file

[bug981352] - Removed the closure, added jslint unparam