fix issues with protected script tags