Fixed errors

fixed errors I was having in the JS Practice assignment.