javascript invalidate cache