almost cracked timer logic and implemented moment.js