const SpotifyController = require('./src/spotify.js') var spotifyController = new SpotifyController().then(initializingSuccess, printError) // SpotifyController initialized function initializingSuccess(result) { console.log(result) } // Print the error to the console function printError(error) { console.log(error) }