Set timeout via AJAX when app starts