Removed JSHint warnings