fixed problems around escaping-unescaping script pages