JavaScript generated login test