trial js