Updated footnotes.js

It now works with how Jekyll + kramdown generates footnote links.