added www directory and fixed json