update js source. replace deprecated method on old jquery