added basic requirejs functionality