JS functoins: small important change