Updating jquery to have accordion like functionality