some coffeescript helper scripts