make the JavaScript and jQuery examples agree