remove redundant code in node index.php and fix indentation