Area Tool: javascript cleanup, added z-scroll functionality