fix js animation