Messing around with javascript map

Map doesn't work, just committing for posterity's sake