change is js to make motion chart less jumpy