Added code to generate the embed code