Changed some javascript