updating script js