A javascript port of Marktab