namespacing d3 javascript output & adding support for adding styles to elements