domCache saved as json not global var

DOM cache saved in javascript/json script tag