Update Project3.js

method