How to Create & Call CometChat Custom JavaScript Functions.