merge js in layout