title: Ratchet / When.js: "Uncaught ReferenceError: module is not defined"
body: <p>I'm trying to use ratchet for reflecting the changes made to my database realtime.
  I used the code of the pusher app (<a href="http://socketo.me/docs/push">http://socketo.me/docs/push</a>). But i am getting error in that.</p>
  
  <p>The moment I open the client side page :</p>
  
  <pre><code>Uncaught ReferenceError: module is not defined                    when.js:900
  (anonymous function)                                              when.js:900
  (anonymous function)                                              when.js:15
  (anonymous function)                                              when.js:900
  </code></pre>
  
  <p>After this I typed: 
  conn.subscribe('topic'); //This subscribes the topic.</p>
  
  <p>Now the moment I make changes to this topic, an error pops up where the changes are to be displayed.</p>
  
  <p>Error 2 : </p>
  
  <pre><code>Uncaught TypeError: undefined is not a function         [VM] autobahn.min.js (124):66
  (anonymous function)                                    [VM] autobahn.min.js (124):66
  c._websocket.onmessage                                  [VM] autobahn.min.js (124):66
  </code></pre>
  
  <p>Any help ?</p>