create buildPopupContentHTML() function -- in anticipation of re-use.
re-use buildPopupContentHTML() from baselayer_onClick()