added positionTooltips function to edit.js and new.js
Merge branch 'hotfix/js_fix'