completed dynamic generation with jade