 [rectWidth, rectHeight] = [60, 60]
+
+UPDATE_INTERVAL = 1000
 
 # Initialised by reset().
 checkDoneInterval = null
 colours = null
 context = null
 height = null
-index = null
 start = null
 width = null
+
+sort_context = null
 
 # We set this after document is ready.
 canvas = null

        start = Date.now()

        initColours()
        defer(sort)

        checkDoneInterval = window.setInterval(checkDone, 10)

        window.clearTimeout(timeout) while (timeout = timeouts.pop())

        colours = []
        win = $(document)
        [width, height] = [$(document).width(), $(document).height()]

