never half ass a commit, fixed broken things in JS files