Object factory honoring JavaScripts prototype delegation