[bug979651] - Moved inline script into separate file