process javascript tag and regex exceptions