Fixed two bugs.

Fixes #12
And prevents Autoload.js from failing when cookies expire.