updates to the way we cache some javascript