Addition of synchronous node.js/javascript implementation.
Merge pull request #4 from AlpacaFan/JohanWorking

Addition of synchronous node.js/javascript implementation.