working on javascript appmessages for menu content