Refactored js files
Added filter to chatroom input