get json data from database and use them in JS - fix the issue of cant loadVideoById of undefined by adding a timer in playSound function