Simple chat application with codeigniter and jquery framework