Can we determine the notification message here instead of in the javascript code?