Messing around with recursive functions in ES6.