edit homework in JS