fix bug where it replaces text many times when you load a popup. This requires a weird hack: http://davidwalsh.name/detect-node-insertion
Only keep cache for 3 days