Javascript AJAX API, stalk the user all the time, manage events