fixed bug in menu demo for index.html