now passes JSHint