hw10-javascript fix