Added first Jest test (including Jest setup)

We really need JavaScript tests for this component, and Jest was the first toolkit that came to mind. I'll also try to workout a pull request for at least one other tool (maybe karma), so we can compare the pro's and con's.
So we're doing a sleep here, are these ms?

Is he polling or does he always wait for the whole timeout?