jsWarrior solution