added browser support and use default code style