inside readycallback:
```
var options = {},
attributeNames = element.getAttribute("attributes");
attributeNames.forEach(function(attr) { 
  options[attr] = this.attributes.getNamedItem(attr);
});
```
would probably make more sense