Unbrowserified version needed updated to pass tests