Code Review

I'd prefer this to be namespaced to your app, instead of window.data, which is super general and could be used and overwritten by who knows what.