remove getEntities, expose Locale and Resource
use onreadystatechange in loadSync and use readyState == 4