adding option to allow public JSON access if desired. Needed to allow dynamic includes