From http://stackoverflow.com/questions/22595493/reading-dot-files-in-javascript-d3