First pass at Coffeescript - broken at the moment