Fix the preview js