more jquery bug fixes