Refactored autoloading of posts

Now fires once per 10 sec, because it loads immediately on doc ready
indentation fix
Merge pull request #41 from ckampfe/index-post-js

Index post js