AutoMapper functionality for JavaScript