Adds customizable grid sizes to Advanced config

- Fixes tiny bug in common.js