added unit testing with requirejs