read views static files, and return json to ajax requests