split form/data submission into Form module, further breaking up Map module in maps.js