update Navbar qrcode left margin; reformat js code