Fixes JavaScript tests in Travis