Update gchatv2.js

Code formatting/convention followed
Merge pull request #6 from mheldc/patch-5

Update gchatv2.js