cleanup of script.js