Convert underscore utility functions to their faster JavaScript equivalent