num1: you're thinking of PhantomJS, which is awesome and also a good choice for what you're trying to do, if you're willing to accept its overhead