clean up scripts.js