Issue #36 - added an option to disable preview generation in JS UI