Analytics reverse engineered and rewritten in CoffeeScript