Scripting: export only user slices in Save to Web

I'm working with a script that exports slices of a PSD.
Just wondering how to program my JS script to export only user slices (see image)?
By default it exports all, including unnecessary auto slices.
Thanks
