move js to app.js, select text in input after next submit
fix spelling
add json dependency lib from org.json