Refactored and added a flag that can be passed as an optional fourth value in $tooltip for unsafe html binding

Fix spec

Returned template setting to original location