refactor bucketlist.js