separate Node script from shell (compatibility)

*nix front end