AppStudio has a nice translator to change VB-style BASIC to JavaScript, so your code is pretty much the same.
However, the controls are based on HTML elements and will have different properties and appearance than Windows-style controls.
In this case, you’ll need to use the documented properties from the Wiki, not the way VB used to do it.