Corrected some JSDoc tags
Only show popup if defined

and correct some JSDoc tags
Handle gLogMessageBox global variable explicitly via window for future module packaging