a bit of coffee and javascript