Made the script compatible with Node.JS
Switched from Jasmine to Mocha