Basic quad tree in JavaScript using a Canvas element. Also features a nice point-in-pixel algorithm.