Jquery When Does A Javascript Error Break The Rest Of The Code?