Adding ajax call to time.php