update JS script