Cleanup of script.js