Put generated parser in js