code: function bezier(points, pos) {
      var n = points.length, r = [], i, j
      for (i = 0; i < n; ++i) {
        r[i] = [points[i][0], points[i][1]]
      }
      for (j = 1; j < n; ++j) {
        for (i = 0; i < n - j; ++i) {
          r[i][0] = (1 - pos) * r[i][0] + pos * r[parseInt(i + 1, 10)][0]
          r[i][1] = (1 - pos) * r[i][1] + pos * r[parseInt(i + 1, 10)][1]
        }
      }
      return [r[0][0], r[0][1]]
    }
docs: generic bezier method for animating x|y coordinates
  minimum of 2 points required (start and end).
  first point start, last point end
  additional control points are optional (but why else would you use this anyway ;)
  @param points: array containing control points
  [[0, 0], [100, 200], [200, 100]]
  @param pos: current be(tween) position represented as float  0 - 1
  @return [x, y]