JS test fix