Add dynamic positioning to js/bootstrap-tooltip.js