Update cometd.js to fix a critical typo

There is a typo for calling the main function.