code cleanup

making some js variables private in the exported module.
onSuccess callback function now has the mapped value, and the xml
response.