Render client scripts after all meta tags

Now scripts are rendered before  "\<title>"(if POS_HEAD). It's not good for SEO. It would be better to render them before "\</head>"