clean up js
at least according to jslint.com