introduced gwtquery for promises, fixes #3