finalize should clear the cache since we are setting the episode ids

episode ids are needed to generate the javascript

the finalize method sets the episode ids for the measure if it is episode of care.  We have already generated the javascript once on load, but we did not have the episode ids at that point.  We need to re-generate with the episode id specified by the user