Convert pdf forms to js object using a map object.