I just noticed that the following function is not working as the documentation says in the ICN JavaScript model. Actually it can not be used with a document path.
retrieveItem(itemIdOrPath, itemRetrievedCallback, templateID, version, vsId, objectStoreId, action)