Fixed affix.js to fix maps and categories/tags bar

Please test this thoroughly before pulling it in! It breaks when the
affix’d element is taller than the screen height. I’ll work on a fix
for this next.