more cleanup on script.js