[nim] Added jasmine-phantomjs test infrastructure. We shouldn't be using console.log() to find problems. We shouldn't be finding problems in the first place