Remove dependency on underscore.js