Reduced the jQuery dependency for the addMessage function and the NavToggle click event