tweaked directive for notes. using blur the ng way instead of jq way