Update encoded.js

Pass options to constructor