Fixed a memory leak

The resources allocated by the jQuery plugin must be freed.
Using $timeout instead of setTimeout

This is a recommended practice by angular. Also, returning null
apparently prevents a memory leak.
Added missing $timeout parameter
Merge pull request #3 from seldary/MemoryLeakFix

Memory leak fix