avoid script execution if remote is a full HTML page

TODO : need improvement if script in body part of the page