updating javascript and program navigation