tests were giving false positives - updated js file