bug fix for jquery load error on mac