new javascript port that uses tries