working on getting both show and index JS sharing code