Tweaked js script to use cordova built-in integration mechanism.

Hi,

i've removed the necessity to manually include dnssd.js file in the html source by using the proper plugin object definition.

Also updated example to reflect change.