add scale canvas
add scale canvas
add scale tooltip
generalize grid construction
use offsetWidth to get IE working