jshint fixes

it looks like a lot, but it's mostly some whitespace changes. try adding
?w=1 to the page on github.
redirect flow wip