rewrote concord-script in coffeescript