Use JavaScript to get the load time of a page/document