Run a function once the entire page has loaded (http://stackoverflow.com/questions/1033398/execute-javascript-when-page-has-fully-loaded).