thanks! have fixed the markup, removing nested anchors by replacing outer anchor with div. now there is only one call to set innerHTML.