adding hw2.js and hw2.txt