Update cometd.js

There is a typo for calling the main function.