Fixes as suggested by @satyamshekhar at https://github.com/dhruvbird/node-xmpp-bosh/commit/8ada5ca930b520023503f4a3f49b4094691f5549#commitcomment-2963314 and TAB cleanup.