Addition of comment code and execution of JS only when code or pre tags found in HTML