Minor (no functional change) tweak to the JS to measure grid unit width.