Would it be possible to convert a NodeJS function to plain Javascript : <p>Im currently playing with the following thing: <a href="http://cgbystrom.com/articles/deconstructing-spotifys-builtin-http-server/" rel="nofollow">http://cgbystrom.com/articles/deconstructing-spotifys-builtin-http-server/</a>, I want to be able to access the SpotifyWebHelper with Javascript, people have build this in NodeJS but I wonder if this is possible in plain JavaScript. Can anyone give me some pointers to start with? Or is this not possible at all?</p>

<p>NodeJS version:
<a href="https://github.com/onetune/spotify-web-helper/blob/master/index.js" rel="nofollow">https://github.com/onetune/spotify-web-helper/blob/master/index.js</a></p>
