cleaning up script.js