add hosts image files; restructure javascripts; add scripts for json