Corrected example for digitalRead JS