Updated JavaScript request