Close #5088 - Fix usage of document.body.contains, check if browser supports this method(ex. ff 3.6)