small js animation fix