Finished js file project 3