there's also casperjs which makes things a little easier on you