Chat using firebase and jquery