Add new new rebuildSelectors() function.

This is to scan the js objects to see if the menus have changed,
and mnap back to the html tags if they have.
But it segfaults if I call it, so I'm not calling it yet.