Move script tags in layout