set up requirejs and testing environment