changed js loading in layout