update jquery.autoRefresh.js with js closure