update jquery loading for better browser compatibility