node.contains checking failing in ie8