added substantial documentation to jspretty.js