tracking box with js regex worked