[bug979651] - Moved inline script into separate file

-> https://bugzilla.mozilla.org/show_bug.cgi?id=979651