Adding js file for the homework