Make average.js run on IonMonkey