Moved the javascript into it's own file, made it pass jslint, ran the css through a css beautifier.