Implement setVisible, and stub out setPosition in js

This should be this.visible = visible, right?