$(document).ready(function () {});
will only run after a full postback occurs (when the DOM is reloaded). I assume you are adding the controls via another AJAX method (in that case document.ready will not fire. You can use the AJAX framework event pageLoad(sender, args) which will fire after both a callback and postback. You can use it like so ..
function pageLoad(sender, args) {
if (args.get_isPartialLoad()) {
setAutoTimer();
getData();
}
}