jQuery each method parameters changed