Add debugging to examples/drawing_code.js

Related to #42, we could also use `console.log` inside the drawing code so learners can easily follow what  their code is doing