alert user of JS errors, refs #207