Update todo in js file