adds area select
this js will crash the browser
fixes performance but needs refactoring