Jasmine AMD tests using curl