Update notes.js

Fix small bug in the example notes.js