changed up embeds for new js api