Spotify developer puzzle written in javascript