update the layout examples to functional jQuery