Refactor with backbone and underscore