Source code cleanup.
Fixed the html "empty" file output when data is thrown at the frontend.