ronnywan1: where's the pure-js version for grid detection