Fix js unittests