Remove script tag outside the cached fragment.
Minor JS fixes.