Limiting the scope around certain elements to satisfy phantomjs.