revised site.js generation, started on visualization