corrected a bug in the conversion and drawing of ways
moved the query text box to the java side (before it was in html)