add qunit example
modularize the math functions
modularize the time functions
update compiled javascript