make test work with javascript
make all test pass