update to using requirejs