updated scripts js