add homework in JS