move the js about favourite list to favorite-list.js and change get cart method with ajax