Cleanup

It might be helpful to look at the diff with `?w=1` in the url, that will cause github to not show the whitespace changes.

Thanks again for creating this.  The changes are just to clean up the coffeescript a bit, feel free to ignore anything you don't agree with.  I'm happy to explain why I made any of them, or why I think what was there before isn't required, just make a comment on the line.

I did it as two commits, to show what could be done before removing the code that's now effectively in Offline itself.