javascript event handling for tab bar (1)