fix isObject for browser