Moved methods from Clock constructor to Clock prototype

- moved all methods from Clock constructor to Clock prototype, and
reworked code where necessary
- added text field clearing to the final submit jQuery function