update js for compatibility with bootsrap - clean trash