using ajax to call addons