var Redirect =
{
    time: 5000,
    location: '/',

    start: function()
    {
        window.setTimeout(Redirect.execute.bind(this), this.time * 1000);
    },

    execute: function()
    {
        document.location = this.location;
    },

    initialize: function ()
    {
        Event.onDOMReady(
            function()
            {
                Redirect.start();
            }
        );
    }
};
Redirect.initialize();
