Moving to requirejs for node.js and client compatibility