Clean up of scripts.js