Created a chat controller and removed JavaScript