Scoped 'ajax' to a local variable