Update get-by-id.js

either append .root or use the prepared var root_URL
Merge pull request #20 from quasel/patch-3

Update get-by-id.js