a sabermetrics application in coffeescript