Added d3 dom functions to controller

Messing around with using d3 for styling and basic enter function.
Oddly adds elements after closing body tag.