update animation example with rAF module