added type attribute to script tag in refresh.php