Fix indentation and add comments to regions.js