added ajax to example