Fix js bug phantomjs article.
Simplify js in phantomjs article.