Fixed reference to old Titanium namespace, used getResourcesDirectory instead of app://, which was not functioning correctly.