JavaScript unit tests with browser console