rewriting tests in js, with async
Merge pull request #2 from dhigginbotham/devel

rewriting tests in js, with async