port of tethical to js/webgl