added JS tests