reuse columns,
use strict
some jshint suggestions
made a bit more robust