Updated mapper.js to get rid of the if/then chains