ajax creation set-up