Add --exclude-regions option to as-js.py

The --exclude-regions option has been in as-svg.py for a while;
let’s add it to as-js as well.