added layout.js with global javascript