Fixed some JS stuff to allow nice email adding to messages