fix bug making blue highlight twice - jquery function was running twice