simplify closure in jquery.autoRefresh.js