adding javascript to handle the menu highlight