Updated next button JS