jQuery-less DOM modification

$() methods were replaced:
$(element).offset(),
$(element).position()