adding some changes to muse-e2e.js to run the test on phantomjs