JB|JE: Reverted script.js back to version prior to refactoring as that broke it