swap shell script for a node script

to support windows
Merge pull request #5 from jkroso/run.js

swap shell script for a node script