AngularJS directive for automatic embedding based on URL