added ability to grab locations from submission form in javascript