add hw3 solutiosn + edited js file