generate the shortest CSS path for an element (JUST STARTED - WORK IN PROGRESS)