JS - Exist Checker Polling