Make average.js and mandelbrot.js run on IonMonkey