Use phantomjs to test js target.