title: Error in the Soundcloud API: Cannot read property 'substr' of null
body: <p>I'm trying to code a Widget using Soundcloud API (locally).</p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Soundcloud musics&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h1&gt;Soundcloud musics&lt;/h1&gt;
  &lt;iframe id="iframe"
      class="iframe"
      width="100%"
      height="465"
      scrolling="no"
      frameborder="no"&gt;
  &lt;/iframe&gt;
  &lt;script src="api.js"&gt;&lt;/script&gt;
  &lt;script&gt;
      var player;
      player = SC.Widget(document.getElementById('iframe'));
      console.debug(player);
      player.load('https://soundcloud.com/somesong', null);
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The error i got from running this is :</p>
  
  <pre><code>Uncaught TypeError: Cannot read property 'substr' of null
  E @ api.js:204
  d @ api.js:328
  n.exports.v @ api.js:326
  (anonymous function) @ index.html:21
  </code></pre>
  
  <p>I've entered soundcloud's minimized api code into a js beautifier so i can track the error. Here's the code : <a href="https://jsfiddle.net/0anL7jfs/" rel="nofollow">https://jsfiddle.net/0anL7jfs/</a></p>
  
  <p>Am i doing something wrong ? It seems that the problem is coming from the SC.Widget() function...</p>