added default dates for index.js; cleaned up index.php