Simple helper for extending native objects