Update demo page

Update script to fix bug with selecting active item