clean up index.js formatting and add some comments
add nickname to actual chat messages