phantomjs headless testing using grunt-mocha and requirejs/amd setup