ajax checks each second if background worker is finished posting tweet