corrected icon toggle javascript