Updates the JS file to listen for, and utilize (hopefuly) websockets ot
initiate chat.