Update script.js

added coments to fight function