Update gchatv2.js

Code formatting/convention followed