Tests pass, however the JS running in the browser appears to be behaving differently. Not got to the bottom of it yet