Implement plotting in coffeescript

Also add a prebuild step which automatically compiles
coffeescript to js