-Added image posting via chat
-Refactored js code in chat.html to chat.js