Fix for tooltips in right alligned block elements
Moved some functions out of local document.ready