Update index.php

added define("IS_INDEX",true); and moved the <!DOCTYPE html> under the ob_start();