It may be necessary to make a change to the IE settings:
For example, for the Local intranet zone, you typically need to change a custom setting to "Initialize and script ActiveX controls not marked as safe for scripting."
I couldn't get the sample above to run without making the change.