(typeahead) clean polluted dom

when `appendToBody` option is set to true and then scope is destroyed, DOM is still polluted with popup. This fix removes `$popup` from DOM, thus cleaning it.

Small style change besides it