HazardCurveParser (as a JS object) working, tests written