works now in the browser (except the qrcode and angular)