changed js response structure, added js cache