Fixing jshint warnings, doh!