mocha js test is injected to page