using jsni to access private fields