Global javascript code moved to external file
Improved stability for pages not in KeystoneJS