rename layout to element_layout and change js init function