add unit test with QUnit and PhantomJS