I made some corrections to my javascript file