improve selector performance
move poi cache invalidation into correct place
fix texr formatting
add hasClass helper function
use hasClass in code