add main page script