finished implementing requirejs.