Node.js version: implement reporting of locations of problematic elements

Fixes #29. (or rather, finishes fixing it)

CC: @hnrch02 @XhmikosR @zacechola for review and/or testing
Ah, I see. It doesn't work for me in the CLI and I thought it was this.