Directives in plain javascript is there any way to create angular style directives using plain Java Script only? E.g