removed socket io logic from chat.js and got static routes working
catch get and post on server side