For the PR10, maybe Google manually sets up it for some famous websites. If you want to get the PR10, you need to call to Google to helps you to get the PR10.
You just need lots of backlinks, seriously. Look at statcounter - so many people use their statcounter that they have millions of backlinks, most from their javascript.