HTML Canvas Flag Wave