Removed Underscore.js dependency except on templates