add javascript comet function