Update timer.js

Workaround to allow e2e tests ,we can't use $timout which make the e2e to hang.
Modification of the $timout.cancel in clearTimout to allow e2e test. Start writing e2e tests but sadly they are not functionnals yet.
Merge pull request #5 from ychartois/master

Workaround to allow e2e tests