C0 grammer parser on javascript