save div and script for embedding