restructured jquery