Added JS tests