added dns.js example and formatted example.js