Pushing small JS program which renders the text for the preview to remote