Fixed hanging script tag in layout