Create handler.js

Created the main handler for the clock