Replaced document.getAttribute with lib.getAttribute

Replaced document.getAttribute with lib.getAttribute