Refactored out ScriptUtils into common Utility for all Web Resources.