add default ajax options. fixes #1125