Simplify inline script code

Simplify the rendering of the inline script (using direct markup), eliminating need for using PHP variable to store value using HEREDOC.
Simplify inline script code

Simplify inline script code (removed extra space)
Merge pull request #2883 from kartik-v/patch-14

Simplify inline script code