a simple PEG parser in javasript