Find an HTML element’s position from document top with vanilla Javascript