Fix JavaScript injection.