Fixed a few issues caught by jshint, hey thanks jshint!