Rethinking html5 for mobile games