Learning positioning of objects and tracking position in the browser