HazardCurveParser (as a JS object) working, tests written
Made class object literal; standardized exception text
Fixed up code formatting.