Fix #272: ViewStack: replace selectedChildId by selectedChild based on document.querySelector
                                   Also add a getVisibleChild() method