upgrade main page csript