trim trailing whitespace in docs page
Update phantomjs

This should also (hopefully) fix the npm install issue in node 0.8
Merge pull request #3174 from megawac/phantomjs

Update phantomjs