Generating OTP every 30s and updating the webpage