JS test codes