feat(js/*): closes #934 - feature flag, a few small fixes