Please do not move the mouse for 5 seconds

Example usage

$(function()
    // Set idle time
    $( document ).idleTimer( 5000 );
});

$(function()
    $( document ).on( "idle.idleTimer", function(event, elem, obj)
        // function you want to fire when the user goes idle
    });

    $( document ).on( "active.idleTimer", function(event, elem, obj, triggerevent)
        // function you want to fire when the user becomes active again
    });

});