Plotting power functions in d3