Cleaned up badly formatted main html code