fix tests, js