[bug975628] - Moved inline script into separate file

Bug is here -> https://bugzilla.mozilla.org/show_bug.cgi?id=975628