fix all things found by jshint

The things that jshint find is extremly important for the uglify step.