Updated to use npm module, and reduced chances of diehardering

You'll want to run ```npm install``` after updating to this, of course.