Refactored CLOCK into it's own js file.