fix ajax settings NPE, make response reusable
Merge pull request #36 from lakemalcom/1.x

fix ajax settings NPE, make response reusable