Introducing Test Doubles in JavaScript and Running the tests from the command line using PhantomJS and Grover