Create main-preview.js