Repaired Earley parser for new chart structure.
Added EarleyParser.js.