add js condition to check #preview_style element exist