Embed code generation moved to JS