I dislike polluting the window object in this way. I guess a global configuration object might be a little better.