Add IE9 support, and cookie-based fallback for non-support of localStorage

This is my first github pull request; my apologies if I'm doin' it wrong.