updated dependency for jsdom and fixed its usage in apricot