Template-driven javascript objects mapping library