You need to add "$('#dialog-container').show()" in your code, else alerts won't be shown. (The dialog container has the prop "display: none"). Also you could use the fadeIn effect and the overlay element. (If you want to test it, visit any profile with an emblem, click on it, a battlelog native alert will open)
Also the "mark the battlelog team"-Regex is broken once again
Thx. Popup will be fixed.
But the bblog team regex work for me in both bf3/bf4.