updated to requirejs format for inclusion into sumo.js