changed the jquery references to be local