set browser debug
refactoring all library, now I use string templates to make the response
remove unnecessary lines