Move area code capture inside the if block

Conflicts:
	js/prompt.js
	release/main.js