adding in a smidge of JS debugging to help refine the searching