Improved debounce tests and refactored implementation
Switched back to PhantomJS as we are using the jasmine mock clock now