fix jade client-side helpers, test it