Improved the embed code generate code.