Fixing error in script tag