reordered functions in CachedNcWMS.js