I did some reorganization in an attempt to get the javascript output working correctly.  I am going to regroup and see if this (a portlet) is the right way to accomplish my goal.
Oops - these were omitted last commit.