Removed the debugging code from script.js and added some useful comments.