minor cleanups in functions.js
Make guess_os only happen if a hash is not given

Closes #15
Merge pull request #16 from eteq/broken-tab-hash-links

Fix hash links going to tabs on index page