fixed time tracking bug

The port to coffee script made the time calculation functions not work
properly. Fixed that now.. everything works fine
bug fix for new tasks

When a new task was added the start_time for it was incorrectly set to
“undefined”. It is now null