removing JSHint warnings