[bug979651] - Moved inline script into separate file

[bug979651] - Small path fix

[bug979651] - Moved all linked scripts to index

[bug979651] - small fix
Merge pull request #378 from admix/bug979651

[bug979651] - Moved inline script into separate file