Fixed playlist form to update list when adding new playlist

Fixed some jshint errors