Tabs, spaces, fixing grunt errors
Added d3 as a global so grunt stops complaining.