fix ajax deprecation, see #280