Javascript version of OpenTyrian