Added popup support

Added support of handling JS popup windows (i.e. alert() input(), etc).