manage cursor type in jquery plugin