Fix bugs in file upload, store polygons into a js hashmap, modify event
listening mechanism, change current active polygon's style