unit testing with jsdom and jquery