convenient unit testing of browser-based javascript (no browser required)