Very fast color interpolation in Javascript