Underscore.js solution added.