wrap element in jquery to work cross browser