added javascript util methods for pegjs grammer files
added the grammer section for parser