major coding change for area.js; other minor changes