add js schema and data-attrs to the layout