fix remaining mocha / requirejs bugs. next step: make tests pass