Fix js component for layout creation
Finish layout persistence