JavaScript Rest Mapper