Update index.php

Fix issue 5081 by making template script and css links absolute rather than relative.