Javascript SDK for Smart view does not work!

Downloaded the package from -> https://developer.samsung.com/smarttv/develop/extension-libraries/smart-view-sdk/download.html

I get an error when I try to import the msf-2.3.4.min.js file which comes in that package. Trying to implement just the basic code to discover TV in my network.

Code ->

msf.search(function(err, services){
    if(err) return console.error('something went wrong', err.message);
    console.log('found '+services.length+' services');
});

Error in console ->

Cannot read property '1' of null at RTCPeerConnection.n.onicecandidate

Please help if you know any other way to connect to my app using javascript API’s

Thank you