adaptations to make autorest more flexible for browser js frameworks