Update instance.js

Handle ids containing odd characters.