Added modified HeadScript and InlineScript view helpers, moved configuration to separate factory