add javascript to play videos in order