trying more js, archiving for now
doing problem one in c++