change script bash to nodejs