detect animation support and smartly remove modal/poplist from dom based on this info