rewrote tests: now using requirejs