Update ui-bootstrap-tpls.js

Ensure tooltip cannot go beyond the lhs of screen