call elements.js in layout