fixed usage of jsdom module in apricot, createWindow was removed from ne...

Fixed usage of jsdom module in apricot, createWindow was old method kept for backward-compatibility. Was removed after 1.0.0 version.