removed internal parentNode function (calling the idea method directly; getRandomTitle accepts the array to choose from as a parameter)