converted to coffeescript and jade