updated javascript to scroll after clicking on tab