added ability to use directive as attribute if someone needs to do so to appease IE8