Cleaned up javascript.  Removed code to turn selected markers green.
Improved error handling for xml and user input.