populate form with json object via JavaScript