test anim witrh pure javascript