Javascript method to load curated page is called only if one exist