Removed jshint sub and fixed warnings