implemented tests in node with yadda, added requirejs support