Efficient animation for games on the (mobile) web