remove extraneous script tags from layout