add headScript to layout