changed some javascript.