updated js in tests