Cleanup code in initialise.js