change to add possibility to use similar tool for node-webkit