The tox library in javascript