React Wait 5 Seconds Javascript