Assignment 2.2

adding my js file
You can drop these variables and just submit the function.