Avoid jQuery array funniness