Cleaned up the code returning the date the server was turned on

Added a more reliable way of measuring it instead of strtotime. Minor modifications in the javascript order of requests.