modified code.js file in chatty/client/lib