Creating CSS tabbed view using javascript