Messing around with es6 map functionality