analogRead_JS example: add comments, clean code