Update hw2.js

Dont know what happened to my code again.. Adding it in, take it out if uncessary