Fix for $.each iterator on arrays to use values