add self executing function to set latest nightly as the default on page load