Updated app to angular js and added chat functionality