moved trip jquery to outside file