             let data = JSON(command.arguments[0]);
             let autoPlay = data["autoPlay"].bool ?? false
             
-            doAddItem(data);
+            self.doAddItem(data);
 
             if autoPlay {
-                jukebox.play();
+                self.jukebox.play();
             }
 
             pluginResult = CDVPluginResult(


    @objc(toggle:)
    func toggle(_ command: CDVInvokedUrlCommand) {
        var pluginResult = CDVPluginResult(
            status: CDVCommandStatus_ERROR
        )

        if jukebox.state == .playing {
            jukebox.pause()
        } else {
            jukebox.play()
        }

        pluginResult = CDVPluginResult(
            status: CDVCommandStatus_OK
        )

        self.commandDelegate!.send(
            pluginResult,
            callbackId: command.callbackId
        )
    }

    @objc(play:)
    func play(_ command: CDVInvokedUrlCommand) {
        var pluginResult = CDVPluginResult(
            status: CDVCommandStatus_ERROR
        )

        jukebox.play()
        pluginResult = CDVPluginResult(
            status: CDVCommandStatus_OK
        )

        self.commandDelegate!.send(
            pluginResult,
            callbackId: command.callbackId
        )
    }

    @objc(pause:)


            for track in tracks {
                let data = JSON(track)
                self.doAddItem(data)
            }

            pluginResult = CDVPluginResult(
