Fixing JSLint warnings
Refactoring url/email/phone directives to use common code