Berlin Clock kata done in javascript