Starting to rework code to use requirejs.