Javascript module to check if server is running