updated for new requirejs syntax