CON-1809 | Fix overlapping of anchored element

Getting the offset of element should be put to separate module and just used here. This module add functionality for scrolling to target based on hash in link, not getting DOM elements dimensions and positions.