Better check for html change

Okay setting innerhtml changes it so comparing with it will not work