Changed index page script sequence