Save chat messages on DB and include JQuery