cleaned up scripts.js