fix a bug in windows.flash_message js method.