Allow to use custom node

Argument node for custom element instead of using the full node.
On chrome at least (works on firefox, not tested on others), the getStyle method does not work with detached node. Using relativeGaugeSize makes it works.