fix browscap fail bug,add config whether to use browscap
reformat