fixing require.js

* Fixed tests
* Now also supports tests+specs written with erb