full client side jade implementation