forgot to finish what I started in javascript