Javascript implementation of Ridmik Parser