Framework and tests of JS bots