wouldn't it be


element.setAttribute("data-marker-left", Lmarker);
element.setAttribute("data-marker-top", Hmarker);


?