Javascript updated