we built functionality into js response