Updated jQuery calls to  work w/ more modern versions of jquery