Swap order of key/value params in objectForEach for consistency with $.each