Adjustments to HACKING.md, bringing inline with simple-api-example.js.

The example in HACKING.md caused some issues for me, but simple-api-example.js is more inline with what I have been working for me.