Trying to loop a javascript player playlist

hi, i was wondering if there is a line of code to make a music player restart its playlist from the first song after the last song ends

here is the code for a js music player that i have https://pastebin.com/mK2HXWaE