Added loading and saving of areas using javascript.