Make sure that period and refresh work

@obfuscurity pointed out that `refresh` and `period` don't work right.

Looking at the `index.haml` it looks like I overlooked some of that stuff. This should fix it.