Remove hardcode cometd url in javascript