copy of https://github.com/hejazee/converse.js without extra files. customized for drupal: http://drupal.org/project/conversejs