js in main layout