Implement sequence transformer in coffeescript