Fixed js error in helix.websql. Added errorHook to allow custom actions on error.