Add README
Refactor event handlers to use common function and data attribute
Move js into file and remove global var in favour of data attribute
Move d3 chart JS into JS file