adding active class to map / moving stripHTML to helper function