[bug979651] - Moved inline script into separate file

[bug979651] - Small path fix

[bug979651] - Moved all linked scripts to index

[bug979651] - small fix