Use cometd3 javascript api
Remove hardcode cometd url in javascript