Update timer.js

Removed zero-unit pluralization and added new unit functions with custom string support.