If you want to get a value of an attribute of a business object from the SERVER in your custom Javascript you can so this:
var action = new AwareApp_GetAttributeValueAction (objectName, objectId, attributeName, null, null, function (value) {
/** Do something with the received value */
});
action.run ();
Check out the code of this action in postFormData.js