Accelerated JavaScript animation