Fixed for Firefox 12

* myIndex must be set with setattribute