crazy ternary operator nesting in jade template....