AngularJS directive to parse and display URLs