Update get-by-id.js

either append .root or use the prepared var root_URL