Script for setting up JavaScript environment

We're doing a lot of things in JavaScript at the moment, but we don't have an easy way to set up the required environment to run or test our JS code.