Began turning underscore.js into typescript