Fixed JS test
- #2270