Javascript SDK for Smart view does not work!

Downloaded the package from ->

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 ->, 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