Removed some global statements in index_ts.php which is out of any classes anyway...