Changed object context global to $
Eliminated underscore.js dependency