update migb js and html codes