Pomodoro clock resume/pause/reset does not work

im still new to jQuery and learning along the way by doing projects like these. But im stuck here.
– my “pause” button works, but when i click “resume” the clock starts at some number.
– my “reset” button does not work properly, works when the work length and break length are at zero
– any help is highly appreciated.
Pomodoro clock