Fix github js to use API v3

Stolen from the classic theme - see
https://github.com/imathis/octopress/pull/675 for details