Hook up events, allow svg element to be styled with css