better bootstrap js code