in progress converting jquery to pure js