Seed v1.1 of Context Free Grammar

Seed version. No major fixes made, just a straight port from PHP to
Javascript.