changed to commonjs syntax from requirejs