Minor correction to EmbedWidget.js to handle window names with dashes.