Cleaning up JSHint warnings