updated layouts to use js/lib