A few fixes from JSHint

http://www.jshint.com/