browser compatability
fix respond_min function