make jsonable, fix jquery map not found