Update asyncJsInclude.js

changed defined test to window.hasOwnProperty()