passes JSHint tests