Did you configure your script to run at boot or you were using it like:
root@edison:~# node yourcode.js
Did you try to re-flash your board using the processes suggested? Also, do you have something else connected to your board when trying to boot? If you do, remove all the external circuitry and reboot you board only with the power supply and USB cable plugged.