This is my javascript file for the assignment