Reference master printMargin script; use index as a demo