Decoupled the Javascript code from index.php into readTime.php.