improve js variable wrapping, support roy

This makes a similar cross-package breakage as before: shakespeare & shakespeare-js are being changed together