removed JSHint warnings