The spotify.js file contains code from the official Spotify docs that has been separated into functions, for your convenience.