Removing unnecessary directives on html tag