a coffee script attempt