Fix JavaScript syntax in README example code