Fixed strict mode + jshint warnings