Fixing how I was throwing exceptions

Showing my ignorance of Javascript here.  I think this is right now.
Annotating grammar tree with rule data