found two places in bogart.js where errors were not thrown property with Error constructor, corrected these