Fixed First Build Error in dns.js exports.platform to var platform

Fixed Build Error with NPM