finish recursive powerset exercise in javascript.