Reworked script tag generation and exposed it on current GlimpseRequestContext