use layout with jade
minor js fix