Create Artboards per layer

Script for Illustrator CS6, more information on my blog
www.creativedroplets.com