Reimplémentation of Tinaweb in JS