mv script element as child of head

Change-Id: I9d69e46f70307130f0d85177308cb04d47d9c741