Transformed to coffeescript and split between server and client folders