JS backend: fix Selenium test: fail on error loading javascript files