Fixes types inside script tags