Moved both stack "brackets" together.
Fixed bugs with asynchronous tests.
Minor tweaks of a test script.
Added RequireJS-based test runner for browsers.
Added PhantomJS-based runner, and a command to test it in Travis-CI.