[How to Run JavaScript in the Mac OS Terminal!]
If you want to run a script without having to load it into a website on your local, you can use node to run the script!
node path_to_script/my_script.js
Easy peasy!!!