Update MyClass.js

browser example simplified