adding preview-script for ruby