updated scripts for jquery