Live demo: the scripts' own layout code running in your browser. Change any setting and the artboard redraws, exactly as the Illustrator dialog's Preview does.
Illustrator Layout Scripts
Live demo
Bento Grid Generator
Logo Lockup Grid
Get the scripts for Illustrator