Add centerpiece cycling functionality

Add the javascript functionality @calebthompson and I discussed in #1