You can accomplish what this script does by using features built into Hype, specifically this: Proportionally scaling a Tumult Hype document based on the browser width - #30 by jonathan
You can do this on only specific scenes without any code. Does that work for what you're building?
When setting scale properties you'll need to uncheck 'Apply changes to all scenes' underneath the scale checkboxes if you only want a single scene to have those properties: