Polyformes JS

WIP - je refais ce truc.