Update app.js

Fix the "first tab selection process" with multiple tabgroups in the same page.