More improvements on the nodejs script