javascript comet