(function (root, factory) { if (typeof exports === 'object' && root.require) { module.exports = factory(require("underscore"), require("backbone")); } else if (typeof define === "function" && define.amd) { // AMD. Register as an anonymous module. define(["underscore","backbone"], function(_, Backbone) { // Use global variables if the locals are undefined. return factory(_ || root._, Backbone || root.Backbone); }); } else { // RequireJS isn't being used. Assume underscore and backbone are loaded in