Reimplement netplot.js in CoffeeScript
Tighten up the coffeescript