replaced array structure with jQuery object