Sleep 1 sec AFTER ajax calls finished