http://phantomjs.org/
There are other ones that do well also, but phantom will likely do anything you need to do.