Fixes period generation code in work_timer.js
Merge pull request #28 from nslater/issue-21

Fixes period generation code in work_timer.js