Implemented functional for generate embed code.