msgs.ssjs line 6: TypeError: msgbase is undefined Instead, just display an error to the user/browser (assuming there is one).