Fountain parsee in Javascript