<!DOCTYPE html>
<head>
  <meta charset="utf-8">
  <style>
    body {
    background: #000000;
    }
  </style>
  <script src="../lib/jquery/jquery-2.1.1.min.js"></script>
  <script src="../lib/d3/d3.min.js"></script>
  <script src="../lib/d3/d3.layout.cloud.js"></script>
</head>
<body onload="init()">
  <div id="wordcloud"></div>
  <script src="js/wordcloud.js"></script>
</body>
</html>

<!DOCTYPE html>
<head>
  <meta charset="utf-8">
  <style>
    body {
    background: #000000;
    }
  </style>
  <script src="../lib/jquery/jquery-2.1.1.min.js"></script>
  <script src="../lib/d3/d3.min.js"></script>
  <script src="../lib/d3/d3.layout.cloud.js"></script>
</head>
<body>
  <div id="wordcloud"></div>
  <script src="js/wordcloud.js"></script>
</body>
</html>

Remove onload event from body element
Remove onload event from body element
