Fixing some issues related to duplicate jquery includes (causes javascript dialog messages to pop multiple times).