How to test asynchronous JavaScript with Jasmine | Hacker News Reader