Added time function to Javascript