Whoops. Forgot to change xhr() to export.ajax()