Messy code here at the moment, in the process of rewriting AJAX from vanilla JS to jQuery
Merge https://github.com/cnlsn1/pchat